<template>
  <div class="container">
    <div class="title">周末去哪儿</div>
    <ul class="list">
      <li class="item border-bottom" v-for="item of weekendList" :key="item.id">
        <div class="img">
          <img class="img-content" :src="item.imgUrl" />
        </div>
        <div class="info">
          <p class="info-title">{{item.title}}</p>
          <p class="info-desc">{{item.desc}}</p>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'HomeWeekend',
  props: {
    weekendList: Array
  }
}
</script>

<style lang="stylus" scoped>
  @import '~styles/varibles.styl'
  @import '~styles/mixins.styl'
  .container
    margin-top .2rem
    .title
      font-size .32rem
      color #212121
      width 100%
      height .44rem
      line-height .44rem
      padding .24rem 0 .1rem .2rem
      ellipsis()
    .list
      .item
        padding .2rem
        display flex
        flex-direction column
        .img
          width 100%
          height 0
          padding-bottom 37.4%
          .img-content
            width 100%
        .info
          padding-left .22rem
          flex 1
          min-width 0
          .info-title
            font-size .32rem
            color #212121
            height .56rem
            line-height .56rem
            ellipsis()
          .info-desc
            font-size .3rem
            color #ccc
            ellipsis()
</style>
